$(function(){
    $.ajax({
        type: "get",
        url: "http://193.112.55.79:9090/api/getcoupon",
        // data: "data",
        dataType: "json",
        success: function (res) {
            console.log(res);
            let html = template('couponTmp',{
                data:res.result
            })
            $('.content').html(html)
        }
    });
})